pub mod cache;
pub mod drawing;

#[derive(Debug)]
pub enum AnalyzerError {
    MoreResults,
    TspError,
    SQLError(String),
    IOError(String),
}

impl From<rusqlite::Error> for AnalyzerError {
    fn from(error: rusqlite::Error) -> AnalyzerError {
        AnalyzerError::SQLError(error.to_string())
    }
}

impl From<std::io::Error> for AnalyzerError {
    fn from(error: std::io::Error) -> AnalyzerError {
        AnalyzerError::IOError(error.to_string())
    }
}
